package com.sise.stuteaintersys.locallibs.enums;

import lombok.Getter;

/**
 * @ClassName ModifyEnum
 * @Description
 * @Date 2019/1/4 13:55
 * @Version 1.0
 **/
@Getter
public enum ModifyEnum implements CodeEnum{
    /**
     *  课程修改操作出现的情况
     * */
    COURSEADDSUCCESS(30000, "课程添加成功"),
    COURSEADDERROR(30001, "课程添加失败"),
    COURSEUNDETSUCCESS(30002, "课程更改成功"),
    COURSEUNDETERRED(30003, "课程更改失败"),
    COURSEDEFSUCCESS(30005, "课程删除成功"),
    COURSEDEFERRER(30006, "课程删除异常"),

    /**
     *  作业的情况
     * */
    HOMEWORKADDSUCCESS(40000, "作业添加成功"),
    HOMEWORKADDERROR(40001, "作业添加失败"),
    HOMEWORKUNDETSUCCESS(40002, "作业更改成功"),
    HOMEWORKUNDETERRED(40003, "作业更改失败"),
    HOMEWORKDEFSUCCESS(40004, "作业删除成功"),
    HOMEWORKDEFERRER(40005, "作业删除异常"),

    /**
     *  试题的情况
     * */
    QUESTIONADDSUCCESS(40000, "试题添加成功"),
    QUESTIONADDERROR(40001, "试题添加失败"),
    QUESTIONUNDETSUCCESS(40002, "试题更改成功"),
    QUESTIONUNDETERRED(40003, "试题更改失败"),
    QUESTIONDEFSUCCESS(40004, "试题删除成功"),
    QUESTIONDEFERRER(40005, "试题删除异常"),

    /**
     * 留言板MESSAGE
     * */

    MESSAGEADDSUCCESS(50000, "留言添加成功"),
    MESSAGEADDERROR(50001, "留言添加失败"),
    MESSAGEUNDETSUCCESS(50002, "留言更改成功"),
    MESSAGEUNDETERRED(50003, "留言更改失败"),
    MESSAGEDEFSUCCESS(50004, "留言删除成功"),
    MESSAGEDEFERRER(50005, "留言删除异常"),
    MESSAGESELETESUCCESS(50006, "留言查询成功"),
    MESSAGESELETEERROR(50007, "留言查询失败"),



    ;
    private Integer code;
    private String msg;

    ModifyEnum (Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

}
